package main

import (
	"huayan.com/src/goroutinePool"
	"huayan.com/src/webService"
	"time"
)

func main() {
	endCh := make(chan bool)

	//初始化线程池接收任务
	goroutinePool.NewPool(2, 10, 10)
	go goroutinePool.PoolObj.Run()

	//初始化web服务
	go webService.WebServerStart()

	//保证主线程不死锁
	go func() {
		for{
			time.Sleep(10000*time.Second)
		}
	}()

	<- endCh
	//goroutinePool.Wg.Wait()
}
